<template>
  <div>
    props:{{ id }}
  </div>
</template>
<script>
export default {
  props: {
    id: {
      type: Number,
      required: true
    }
  },
  methods: {
    doSomething() {
      console.log('发ajax', this.id)
    }
  }
}
</script>
